﻿
<div class="content-form">
                          
    <table>
        <tr>
            <td>
                @Html.Label("Txt")
            </td>
            <td colspan=3>
                @Html.TextBox("Txt", "")  
                
            </td>
        </tr>
        <tr>
            <td>
                @Html.Label("X")
            </td>
            <td colspan=3>
                @Html.TextBox("X", "")                
            </td>
            <td style="text-align:right; padding-right:5px;">
                @Html.Label("FontName")
            </td>
            <td>
               @* @Html.DropDownList("FontName", (List<SelectListItem>)ViewBag.FontNames)     *@
                @{
                     <select id="FontName" name="FontName" >
                     @foreach (var font in (List<SelectListItem>)ViewBag.FontNames)
                     {
                         <option style="font-family:@font.Text" value="@font.Value">@font.Text</option>
                     }
                     </select>
                 }                      
            </td>

        </tr>
                               
            <tr>
            <td>
                @Html.Label("Y")
            </td>
            <td colspan=3>
                @Html.TextBox("Y", "")                   
            </td>
            <td style="text-align:right; padding-right:5px;">
                @Html.Label("FontSize")
            </td>
            <td colspan=3>
                @Html.TextBox("FontSize", "")                    
            </td>
        </tr>
                             
            <tr>
            <td>
                @Html.Label("Width")
            </td>
            <td colspan="3">
                @Html.TextBox("Width", "")                    
            </td>
            <td style="text-align:right; padding-right:5px;">
                @Html.Label("Bold")
            </td>
            <td>
            @Html.CheckBox("Bold")
                 @*@Html.CheckBox("Bold", (Model != null && Model.Bold != null && (bool)Model.Bold))*@                                
            </td>
        </tr>
                                
        <tr>
            <td>
                @Html.Label("Height")
            </td>
            <td colspan="3">
                @Html.TextBox("Height", "")                   
            </td>
            <td style="text-align:right; padding-right:5px;">
                @Html.Label("FontColor")
            </td>
            <td>
                 @*@Html.DropDownList("FontColor", (List<SelectListItem>)ViewBag.FontColors)*@
                 @{
                     <select id="FontColor" name="FontColor" style="background-color:Red; color:Black;" >
                     @foreach(var color in  (List<SelectListItem>)ViewBag.FontColors) {
                         <option style="background-color:@color.Text; color:Black;" value="@color.Value">@color.Text</option>
                     }
                     </select>
                 }                       
            </td>
        </tr>

        <tr>
            <td>
                <label class="control-label">Method</label>
            </td>
            <td colspan="3">
                @*@Html.DropDownList("DisplayMode", (List<SelectListItem>)ViewBag.DisplayMode))  *@ 
                <select id="DisplayMode" name="DisplayMode" >
                     @foreach (var display in new SelectList(ViewBag.DisplayMode, "Value", "Text", 1))
                     {
                         <option  value="@display.Value">@display.Text</option>
                     }
                     </select>
            </td>
            <<td style="text-align:right; padding-right:5px;">
                @Html.Label("ShowSingle")
            </td>
            <td>
            @Html.CheckBox("ShowSingle")                             
            </td>
        </tr>
        <tr>
            <td>
                 @Html.Label("RunSpeed")
            </td>
            <td>
                 @*@Html.DropDownList("RunSpeed", new SelectList(ViewBag.Speeds, "Value", "Text", Model.RunSpeed))   *@ 
                 <select id="RunSpeed" name="RunSpeed" >
                     @foreach (var speed in new SelectList(ViewBag.Speeds, "Value", "Text", 1))
                     {
                         <option  value="@speed.Value">@speed.Text</option>
                     }
                     </select>
            </td>
            <td></td>
            <td></td>
        </tr>
    </table>
</div><!-- End div#view2_txt1  -->
                        